package com.example.chentian.weighttestcjy313;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.TextView;

/**
 * Created by chentian on 10/04/2017.
 */

public class NewActivity extends Activity {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_new);

        Intent intent = getIntent();
        String str = intent.getStringExtra("name");

        TextView textView = (TextView) findViewById(R.id.text);
        textView.setText(str);
    }

    public void BackActivity(View view) {
        finish();
    }
}
